#include"SmartPtr.h"

int main() {

	bit::auto_ptr<int> at1(new int(1));
	bit::auto_ptr<int> at2(new int(2));
	cout << *at1 << endl;

	bit::auto_ptr<int> at3(at1);
	cout << *at2 << endl;
	cout << *at3 << endl;

	bit::unique_ptr<int> ut1(new int(3));
	cout << *ut1 << endl;

	bit::shared_ptr<int> st1(new int(4));
	bit::shared_ptr<int> st2(new int(5));
	cout << *st1 << endl;

	bit::shared_ptr<int> st3(st1);
	cout << *st1 << endl;
	cout << *st2 << endl;
	cout << *st3 << endl;

	return 0;
}